package com.fcscs.cservice.gwt.server;

import java.util.List;

import com.fcscs.core.gwt.server.FcsRemoteServiceServlet;
import com.fcscs.core.system.ApplicationContextHolder;
import com.fcscs.cservice.domain.BillOption;
import com.fcscs.cservice.domain.ChargeType;
import com.fcscs.cservice.domain.TransactionType;
import com.fcscs.cservice.domain.model.BillOptionView;
import com.fcscs.cservice.domain.model.ChargeCategoryView;
import com.fcscs.cservice.domain.model.ChargeTypeView;
import com.fcscs.cservice.domain.model.TransactionTypeView;
import com.fcscs.cservice.gwt.client.InRoomConfService;
import com.fcscs.cservice.service.InRoomConfManager;

public class InRoomConfServiceImpl extends FcsRemoteServiceServlet implements InRoomConfService {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5449741112398797727L;
	private InRoomConfManager inRmCfMgr = (InRoomConfManager) ApplicationContextHolder.getBeanFromContext("inRoomConfManager");
	
	@Override
	public List<TransactionType> getTransactionTypeList(long orgId, long propId) {
		return inRmCfMgr.getTransactionTypeList(orgId, propId);
	}

	@Override
	public List<TransactionTypeView> getTransactionTypeViewList(long orgId,long propId) {
		return inRmCfMgr.getTransactionTypeViewList(orgId, propId);
	}

	@Override
	public TransactionType createTransactionType(TransactionType txType) {
		return inRmCfMgr.createTransactionType(txType);
	}

	@Override
	public TransactionType saveTransactionType(TransactionType txType) {
		return inRmCfMgr.saveTransactionType(txType);
	}

	@Override
	public boolean deleteTransactionType(TransactionType txType) {
		return inRmCfMgr.deleteTransactionType(txType);
	}

	@Override
	public boolean permDeleteTransactionType(TransactionType txType) {
		return inRmCfMgr.permDeleteTransactionType(txType);
	}

	@Override
	public boolean isTransactionTypeTaken(long orgId, long propId, String code,Long id) {
		return inRmCfMgr.isTransactionTypeTaken(orgId, propId, code, id);
	}

	@Override
	public List<ChargeType> getChargeTypeList(long orgId, long propId) {
		return inRmCfMgr.getChargeTypeList(orgId, propId);
	}

	@Override
	public List<ChargeTypeView> getChargeTypeViewList(long orgId, long propId) {
		return inRmCfMgr.getChargeTypeViewList(orgId, propId);
	}

	@Override
	public ChargeType createChargeType(ChargeType chargeType) {
		return inRmCfMgr.createChargeType(chargeType);
	}

	@Override
	public ChargeType saveChargeType(ChargeType chargeType) {
		return inRmCfMgr.saveChargeType(chargeType);
	}

	@Override
	public boolean deleteChargeType(ChargeType chargeType) {
		return inRmCfMgr.deleteChargeType(chargeType);
	}

	@Override
	public boolean permDeleteChargeType(ChargeType chargeType) {
		return inRmCfMgr.permDeleteChargeType(chargeType);
	}

	@Override
	public boolean isChargeTypeTaken(long orgId, long propId, String code,Long id) {
		return inRmCfMgr.isChargeTypeTaken(orgId, propId, code, id);
	}

	@Override
	public List<ChargeCategoryView> getChargeCategoryViewList(long orgId,long propId) {
		return inRmCfMgr.getChargeCategoryViewList(orgId, propId);
	}

	@Override
	public ChargeCategoryView createChargeCategoryView(long orgId, long propId,
			ChargeCategoryView chargeCategory) {
		return inRmCfMgr.createChargeCategoryView(orgId, propId, chargeCategory);
	}

	@Override
	public ChargeCategoryView saveChargeCategoryView(long orgId, long propId,
			ChargeCategoryView chargeCategory) {
		return inRmCfMgr.saveChargeCategoryView(orgId, propId, chargeCategory);
	}

	@Override
	public boolean deleteChargeCategoryView(ChargeCategoryView chargeCategory) {
		return inRmCfMgr.deleteChargeCategoryView(chargeCategory);
	}

	@Override
	public boolean permDeleteChargeCategory(ChargeCategoryView chargeCategory) {
		return inRmCfMgr.permDeleteChargeCategory(chargeCategory);
	}

	@Override
	public boolean isChargeCategoryTaken(long orgId, long propId, String code,
			Long id) {
		return inRmCfMgr.isChargeCategoryTaken(orgId, propId, code, id);
	}

	@Override
	public List<BillOption> getBillOptionList(long orgId, long propId) {
		return inRmCfMgr.getBillOptionList(orgId, propId);
	}

	@Override
	public List<BillOptionView> getBillOptionViewList(long orgId, long propId) {
		return inRmCfMgr.getBillOptionViewList(orgId, propId);
	}

	@Override
	public BillOption createBillOption(BillOption bo) {
		return inRmCfMgr.createBillOption(bo);
	}

	@Override
	public BillOption saveBillOption(BillOption bo) {
		return inRmCfMgr.saveBillOption(bo);
	}

	@Override
	public BillOption getBillOption(long id) {
		return inRmCfMgr.getBillOption(id);
	}

	@Override
	public boolean deleteBillOption(BillOption bo) {
		return inRmCfMgr.deleteBillOption(bo);
	}

	@Override
	public boolean permDeleteBillOption(BillOption bo) {
		return inRmCfMgr.permDeleteBillOption(bo);
	}

	@Override
	public boolean isBillOptionTaken(long orgId, long propId, String name,Long id) {
		return inRmCfMgr.isBillOptionTaken(orgId, propId, name, id);
	}
}
